cmake_minimum_required(VERSION 3.15)
project(RtmpUtil C)

set(CMAKE_C_STANDARD 11)

include_directories(include/)
link_directories(bin/)

add_library(RtmpUtil SHARED lib_rtmp_util.c lib_rtmp_util.h jni.h rtmp_output_picture.h rtmp_output_picture.c rtmp_pool.h rtmp_pool.c constant.h util.h util.c)

target_link_libraries(
        RtmpUtil
        avcodec
        avfilter
        avformat
        avutil
        postproc
        swresample
        swscale
)